<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2023/3/30
  Time: 12:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>教师管理系统</title>
</head>
<body>
<h1>欢迎您!${teacher.getName()}老师</h1>
<input type="button" value="基本信息" onclick="selectteacher()" style="width: 150px;margin-bottom: 20px;border-radius: 10px"><br>
<form action="http://localhost:8080/ExaminationManagement1_war/GradeMsg" method="post">
    <select name="grade">
        <option>请选择班级</option>
        <c:forEach items="${teacher.getGrade()}" var="grade">
            <option>${grade}</option>
        </c:forEach><br>
    </select>
    <input type="submit" value="查询">
</form>
<form action="http://localhost:8080/ExaminationManagement1_war/Bandgrade" method="post">
    <span id="warn" style="color: red">${warn}</span>
    绑定班级:<select name="bandgrade">
    <c:forEach items="${allgrade}" var="grade">
        <option>${grade}</option>
    </c:forEach>
</select>班
</form>
    <form action="http://localhost:8080/ExaminationManagement1_war/QuestionMsg" method="post">
        <input type="submit" value="题库" style="width: 150px;margin-bottom: 20px;border-radius: 10px">
    </form>
    <form action="http://localhost:8080/ExaminationManagement1_war/PaperMsg" method="post">
        <input type="submit" value="试卷库" style="width: 150px;margin-bottom: 20px;border-radius: 10px">
    </form>
<form action="#" method="post">
    <input type="submit" value="考试情况" style="width: 150px;margin-bottom: 20px;border-radius: 10px">
</form>
<form action="#" method="post">
    <input type="submit" value="考试情况" style="width: 150px;margin-bottom: 20px;border-radius: 10px">
</form>
<script>
    function selectteacher(){
        window.location="teachermsg.jsp"
    }
</script>
</body>
</html>
